﻿using System.Collections.Generic;
using System.Runtime.Serialization;

namespace ExplorerService.Common.DataContracts
{
    /// <summary>
    /// Information about an isolated storage directory
    /// </summary>
    [DataContract]
    public class DirectoryInformation
    {
        /// <summary>
        /// List of files contained by the directory
        /// </summary>
        [DataMember]
        public List<FileInformation> Files { get; set; }

        /// <summary>
        /// List of subdirectories contained by the directory
        /// </summary>
        [DataMember]
        public List<DirectoryInformation> Directories { get; set; }

        /// <summary>
        /// The path to the directory
        /// </summary>
        [DataMember]
        public string Path { get; set; }

        /// <summary>
        /// The directory name
        /// </summary>
        [DataMember]
        public string Name { get; set; }
    }
}
